<template>
    <div class="preferences">
        <div class="title">猜你喜欢的</div>
        <div class="main">
            <LiveCard v-for="item in props.data" :key="item.id" :src="item.image" :text="item.text" :goodsNum="item.goodsNum" />
        </div>
        <div class="footer">
            <el-button color="#000" round dark>加载更多</el-button>
        </div>
    </div>
</template>
<script setup >
const props = defineProps({
    "data":Array
})
</script>

<style scoped lang="scss">
.preferences {
    background-color: #F5F5F5;
    padding-top: 42px;
    overflow: hidden;
    padding-bottom: 90px;
    .title {
        font-size: 22px;
        font-weight: bold;
        text-indent: 30px;
    }

    .main {
        margin: 28px 30px 30px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .footer{
        text-align: center;
        margin-top: 20px;
        
        & .el-button {
            width: 120px;
            height: 40px;
            font-size: 14px;
        }
    }
}
</style>